Skip to content

Update specs to RSpec 2.14.8 syntax #58

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

loganhasson
Copy link

This conversion is done by Transpec 1.13.1 with the following command:
transpec spec/fdoc/presenters spec/fdoc/endpoint_scaffold_spec.rb spec/fdoc/endpoint_spec.rb spec/fdoc/service_spec.rb spec/fdoc/spec_watcher_spec.rb

  • 83 conversions
    from: obj.should
    to: expect(obj).to
  • 40 conversions
    from: == expected
    to: eq(expected)
  • 10 conversions
    from: obj.should_receive(:message)
    to: expect(obj).to receive(:message)
  • 8 conversions
    from: obj.should have(n).response_codes
    to: expect(obj.response_codes.size).to eq(n)
  • 7 conversions
    from: obj.should have(n).keys
    to: expect(obj.keys.size).to eq(n)
  • 5 conversions
    from: obj.should_not
    to: expect(obj).not_to
  • 2 conversions
    from: obj.stub(:message)
    to: allow(obj).to receive(:message)
  • 1 conversion
    from: =~ [1, 2]
    to: match_array([1, 2])
  • 1 conversion
    from: its(:attr) { }
    to: describe '#attr' do subject { super().attr }; it { } end

This conversion is done by Transpec 1.13.1 with the following command:
    transpec spec/fdoc/presenters spec/fdoc/endpoint_scaffold_spec.rb spec/fdoc/endpoint_spec.rb spec/fdoc/service_spec.rb spec/fdoc/spec_watcher_spec.rb

* 83 conversions
    from: obj.should
      to: expect(obj).to

* 40 conversions
    from: == expected
      to: eq(expected)

* 10 conversions
    from: obj.should_receive(:message)
      to: expect(obj).to receive(:message)

* 8 conversions
    from: obj.should have(n).response_codes
      to: expect(obj.response_codes.size).to eq(n)

* 7 conversions
    from: obj.should have(n).keys
      to: expect(obj.keys.size).to eq(n)

* 5 conversions
    from: obj.should_not
      to: expect(obj).not_to

* 2 conversions
    from: obj.stub(:message)
      to: allow(obj).to receive(:message)

* 1 conversion
    from: =~ [1, 2]
      to: match_array([1, 2])

* 1 conversion
    from: its(:attr) { }
      to: describe '#attr' do subject { super().attr }; it { } end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant